﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_RptQuyTienGoiNganHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvNganhang")]
        private ADVObjects _AdvNganhang;
        [AccessedThroughProperty("AdvTaiKhoan")]
        private ADVAccount _AdvTaiKhoan;
        [AccessedThroughProperty("CboDonVi")]
        private ComboBox _CboDonVi;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private clsChungTuQuy objCTQ;
        private clsDMTaiKhoan objTK;

        public Frm_RptQuyTienGoiNganHang()
        {
            base.Load += new EventHandler(this.Frm_RptQuyTienGoiNganHang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objCTQ = new clsChungTuQuy();
            this.objTK = new clsDMTaiKhoan();
            this.InitializeComponent();
        }

        public bool checkIvalid()
        {
            bool flag=false;
            if (LVYModule.ReturnIfNull(this.AdvTaiKhoan.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nh\x00e2̣p số t\x00e0i khoản trước!", ""));
                this.AdvTaiKhoan.Focus();
                return flag;
            }
            if (LVYModule.ReturnIfNull(this.AdvNganhang.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn ng\x00e2n h\x00e0ng!", ""));
                this.AdvNganhang.Focus();
                return flag;
            }
            return true;
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.checkIvalid())
            {
                this.PrintReport();
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Frm_RptQuyTienGoiNganHang_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboDonVi, modGeneral.ListDanhMuc.DonVi, false, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                this.CboDonVi.SelectedValue = modGeneral.H_CLIENT;
                this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(DateAndTime.Month(DateAndTime.Today)), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
                this.AdvTaiKhoan.Value = modGeneral.H_DEFAULT.Item("H_TKC_BCNH").GiaTri.ToString().Trim();
                if (this.AdvTaiKhoan.Value.Trim() != "")
                {
                    this.objTK.Load(this.AdvTaiKhoan.Value);
                    this.CboLoaiTien.SelectedValue = this.objTK.LoaiTien;
                }
                else
                {
                    this.CboLoaiTien.SelectedValue = modGeneral.H_CURRENCY;
                }
                this.Cursor = Cursors.Default;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_RptQuyTienGoiNganHang));
            this.Label3 = new Label();
            this.AdvTaiKhoan = new ADVAccount();
            this.Label2 = new Label();
            this.TxtDenNgay = new DateTimePicker();
            this.Label13 = new Label();
            this.GroupBox1 = new GroupBox();
            this.CboLoaiTien = new ComboBox();
            this.Label11 = new Label();
            this.AdvNganhang = new ADVObjects();
            this.Label4 = new Label();
            this.TxtTuNgay = new DateTimePicker();
            this.Label1 = new Label();
            this.CboDonVi = new ComboBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.Label3.AutoSize = true;
            Point point = new Point(0xe1, 0x3f);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            Size size = new Size(0x35, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x2b;
            this.Label3.Text = "Đến ng\x00e0y";
            this.AdvTaiKhoan.Conditions = "";
            this.AdvTaiKhoan.DefaultValue = "";
            this.AdvTaiKhoan.FieldNameFilter = "Left(SoTaiKhoan,3)";
            this.AdvTaiKhoan.KeyFilter = "112";
            point = new Point(0x79, 0x58);
            this.AdvTaiKhoan.Location = point;
            Padding padding = new Padding(0);
            this.AdvTaiKhoan.Margin = padding;
            this.AdvTaiKhoan.Name = "AdvTaiKhoan";
            this.AdvTaiKhoan.OnlyDigit = false;
            this.AdvTaiKhoan.ReadOnly = false;
            size = new Size(0x10f, 20);
            this.AdvTaiKhoan.Size = size;
            this.AdvTaiKhoan.TabIndex = 3;
            this.AdvTaiKhoan.UpperText = true;
            this.AdvTaiKhoan.Value = "";
            this.AdvTaiKhoan.WithCode = 80;
            this.Label2.AutoSize = true;
            point = new Point(0x18, 0x5c);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x43, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x29;
            this.Label2.Text = "Số t\x00e0i khoản";
            this.TxtDenNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x131, 0x3b);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x57, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 2;
            this.Label13.AutoSize = true;
            point = new Point(0x17, 0x3e);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x2e, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 40;
            this.Label13.Text = "Từ ng\x00e0y";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboLoaiTien);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.AdvNganhang);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.TxtDenNgay);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.AdvTaiKhoan);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.TxtTuNgay);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.CboDonVi);
            point = new Point(8, 6);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x19d, 0xb3);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 7;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00f9y chọn";
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x79, 0x90);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x57, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 0x66;
            this.Label11.AutoSize = true;
            point = new Point(0x19, 0x94);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 0x67;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.AdvNganhang.Conditions = "";
            this.AdvNganhang.LoaiDoiTuong = modGeneral.TypeObjects.NganHang;
            point = new Point(0x79, 0x74);
            this.AdvNganhang.Location = point;
            this.AdvNganhang.Name = "AdvNganhang";
            this.AdvNganhang.ReadOnly = false;
            size = new Size(0x10f, 20);
            this.AdvNganhang.Size = size;
            this.AdvNganhang.TabIndex = 4;
            this.AdvNganhang.UpperText = true;
            this.AdvNganhang.Value = "";
            this.AdvNganhang.WidthCode = 80;
            this.Label4.AutoSize = true;
            point = new Point(0x18, 0x77);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(60, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x65;
            this.Label4.Text = "Ng\x00e2n h\x00e0ng";
            this.TxtTuNgay.Format = DateTimePickerFormat.Short;
            point = new Point(0x79, 0x3b);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x57, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 1;
            this.Label1.AutoSize = true;
            point = new Point(0x17, 0x20);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x26, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Đơn vị";
            this.CboDonVi.FormattingEnabled = true;
            point = new Point(0x79, 0x1d);
            this.CboDonVi.Location = point;
            this.CboDonVi.Name = "CboDonVi";
            size = new Size(0x10f, 0x15);
            this.CboDonVi.Size = size;
            this.CboDonVi.TabIndex = 0;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x155, 190);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 9;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x102, 190);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 8;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x1ad, 220);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_RptQuyTienGoiNganHang";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BC-0002             ";
            this.Text = "BAO CAO SO QUY TIEN GOI NGAN HANG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
        }

        public void PrintReport()
        {
            this.Cursor = Cursors.WaitCursor;
            DataTable table = this.objCTQ.RptQuyTienGoiNganHang(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboDonVi.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), LVYModule.Date2Char(this.TxtTuNgay.Text), LVYModule.Date2Char(this.TxtDenNgay.Text), this.AdvTaiKhoan.Value, this.AdvNganhang.Value, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim());
            clsDMTaiKhoan khoan = new clsDMTaiKhoan();
            khoan.Load(this.AdvTaiKhoan.Value);
            if (table.Rows.Count == 0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
            }
            else
            {
                object obj2;
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != modGeneral.H_CURRENCY)
                {
                    obj2 = new Rpt_SoQuyTienGoiNganHangNgoaiTe();
                }
                else
                {
                    obj2 = new Rpt_QuyTienGoiNganHang();
                }
                try
                {
                    object[] arguments = new object[] { table };
                    bool[] copyBack = new bool[] { true };
                    NewLateBinding.LateCall(obj2, null, "SetDataSource", arguments, null, null, copyBack, true);
                    if (copyBack[0])
                    {
                        table = (DataTable) Conversions.ChangeType(RuntimeHelpers.GetObjectValue(arguments[0]), typeof(DataTable));
                    }
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, "") }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, "") }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 5, modGeneral.Tranlated("SỔ TIỀN GỞI NG\x00c2N H\x00c0NG", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 6, modGeneral.Tranlated("Từ ng\x00e0y ", "") + ":" + this.TxtTuNgay.Text + " " + modGeneral.Tranlated("đến ng\x00e0y ", "") + " : " + this.TxtDenNgay.Text }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 7, modGeneral.Tranlated("Số tiền", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 8, modGeneral.Tranlated("Chứng từ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 9, modGeneral.Tranlated("Ng\x00e0y th\x00e1ng ghi sổ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 10, modGeneral.Tranlated("Diễn giải", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 11, modGeneral.Tranlated("TK đối", "") }, null, null, null, true);
                    if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != modGeneral.H_CURRENCY)
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 12, modGeneral.Tranlated("Thu", "") }, null, null, null, true);
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Chi", "") }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 12, modGeneral.Tranlated("Số hiệu", "") }, null, null, null, true);
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 13, modGeneral.Tranlated("Ng\x00e0y th\x00e1ng", "") }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 14, modGeneral.Tranlated("Ng\x00e0y ...... th\x00e1ng ...... năm ...............", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 15, modGeneral.Tranlated("Gi\x00e1m đốc", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x10, modGeneral.Tranlated("- Số dư đầu kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x11, modGeneral.Tranlated("- Cộng số ph\x00e1t sinh trong kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x12, modGeneral.Tranlated("(K\x00fd, họ t\x00ean)", "") }, null, null, null, true);
                    if (modGeneral.H_LANGUAGE == "VIET")
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x13, modGeneral.Tranlated("T\x00e0i khoản: ", "") + khoan.SoTaiKhoan.Trim() + "." + khoan.TenViet }, null, null, null, true);
                    }
                    else
                    {
                        NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x13, modGeneral.Tranlated("T\x00e0i khoản: ", "") + khoan.SoTaiKhoan.Trim() + "." + khoan.TenAnh }, null, null, null, true);
                    }
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 20, modGeneral.Tranlated("C\x00f2n lại", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x15, modGeneral.Tranlated("STT", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x16, modGeneral.Tranlated("- Số dư cuối kỳ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x17, modGeneral.Tranlated("Tỷ gi\x00e1", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x18, modGeneral.Tranlated("Nguy\x00ean tệ", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x19, modGeneral.Tranlated("Quy đổi", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1a, modGeneral.Tranlated("Loại tiền", "") + this.CboLoaiTien.SelectedValue.ToString().Trim() }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1b, modGeneral.Tranlated("Lập biểu", "") }, null, null, null, true);
                    NewLateBinding.LateCall(obj2, null, "SetParameterValue", new object[] { 0x1c, modGeneral.Tranlated("Kế to\x00e1n trưởng", "") }, null, null, null, true);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = RuntimeHelpers.GetObjectValue(obj2);
                    MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                    MyProject.Forms.Frm_ViewReport.ShowDialog();
                    this.Cursor = Cursors.Default;
                }
                catch (Exception exception1)
                {
                    ProjectData.SetProjectError(exception1);
                    Exception exception = exception1;
                    this.Cursor = Cursors.Default;
                    MessageBox.Show(exception.Message.ToString());
                    ProjectData.ClearProjectError();
                }
            }
        }

        private void TxtTuNgay_LostFocus(object sender, EventArgs e)
        {
            if (LVYModule.sRight(this.TxtTuNgay.Text, 7) != LVYModule.sRight(this.TxtDenNgay.Text, 7))
            {
                this.TxtDenNgay.Text = DateTime.DaysInMonth(Conversions.ToInteger(LVYModule.sRight(this.TxtTuNgay.Text, 4)), Conversions.ToInteger(LVYModule.sMid(this.TxtTuNgay.Text, 4, 2))).ToString() + "/" + LVYModule.sRight(this.TxtTuNgay.Text, 7);
            }
        }

        internal virtual ADVObjects AdvNganhang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNganhang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNganhang = value;
            }
        }

        internal virtual ADVAccount AdvTaiKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvTaiKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvTaiKhoan = value;
            }
        }

        internal virtual ComboBox CboDonVi
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboDonVi;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboDonVi = value;
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTien = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtTuNgay_LostFocus);
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus -= handler;
                }
                this._TxtTuNgay = value;
                if (this._TxtTuNgay != null)
                {
                    this._TxtTuNgay.LostFocus += handler;
                }
            }
        }
    }
}

